/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.blog.idao;

import java.sql.SQLException;
import java.util.List;
import org.blog.model.Author;

/**
 *
 * @author danang
 */

public interface IAuthorDAO {

    public int insert(Author o) throws SQLException;

    public int update(int id, Author o) throws SQLException;

    public int delete(int id) throws SQLException;

    public Author getByUsername(String username) throws SQLException;

    public Author getById(int id) throws SQLException;

    public List<Author> getAll() throws SQLException;

    public List<Author> getByRealNameLike(String title) throws SQLException;
}
